package org.hawk.gwtppc.webtest.tests.methodsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.ClassMock;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock1;

public class GetDeclaringClassTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock1.class.getDeclaredMethod("getValue").getDeclaringClass(), SubClassMock1.class);
		Asserts.assertEquals(SubClassMock1.class.getMethod("append", CharSequence.class).getDeclaringClass(), ClassMock.class);
	}

	public String getName() {
		return "getDeclaringClass()";
	}

}
